package com.skivingcloud.camunda.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.skivingcloud.camunda.entity.ActHiVarinstRow;
import com.skivingcloud.camunda.mapper.ActHiVarinstRowMapper;
import com.skivingcloud.camunda.service.ActHiVarinstRowService;
import org.springframework.stereotype.Service;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import com.skivingcloud.common.utils.PageParameter;

/**
 * VIEW 服务层实现。
 *
 * @author skivingcloud
 * @since 2024-03-25
 */
@Service
public class ActHiVarinstRowServiceImpl extends ServiceImpl<ActHiVarinstRowMapper, ActHiVarinstRow> implements ActHiVarinstRowService {

    /**
     * 分页查询VIEW
     *
     * @param parameter 查询参数
     * @return 分页查询结果
     */
    @Override
    public Page<ActHiVarinstRow> queryByPage(PageParameter<ActHiVarinstRow> parameter){
        Page<ActHiVarinstRow> page = new Page<>(parameter.getPage(), parameter.getPageSize());
        QueryWrapper queryWrapper = QueryWrapper.create();
        return this.page(page, queryWrapper);
    }
}
